package com.financing.platform.dao.impl;


import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.financing.platform.dao.IInfoSubscribeDao;
import com.financing.platform.dto.InfoSubscribeDTO;
import com.financing.platform.util.SqlName;
import com.financing.platform.vo.InfoSubscribeVO;

@Repository("infoSubscribeDaoImpl")
public class InfoSubscribeDaoImpl extends BaseDaoImpl  implements IInfoSubscribeDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<InfoSubscribeVO> queryInfoSubscribeList(
			Map<String,Object> map) throws SQLException {
		return this.sqlMapClient.queryForList(SqlName.queryInfoSubscribe,map);
	}

	@Override
	public int queryInfoSubscribedListCount(InfoSubscribeDTO infoSubscribeDTO)
			throws SQLException {
		
		return (Integer)this.sqlMapClient.queryForObject(SqlName.queryInfoSubscribeCount, infoSubscribeDTO);
	}


	

}
